package com.shtel.paas.monitorcenter.view.dispaly.message.middleware.monitor.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.shtel.paas.monitorcenter.util.Page;
import com.shtel.paas.monitorcenter.view.dispaly.message.middleware.monitor.entity.MessageMiddlewareMonitorEntity;
import com.shtel.paas.monitorcenter.view.dispaly.message.middleware.monitor.mapper.MessageMiddlewareMonitorMapper;
import com.shtel.paas.monitorcenter.view.dispaly.message.middleware.monitor.service.MessageMiddlewareMonitorService;
import com.shtel.paas.monitorcenter.view.dispaly.message.middleware.monitor.vo.MessageMiddlewareMonitorVo;


@Service
public class MessageMiddlewareMonitorServiceImpl implements MessageMiddlewareMonitorService{
	
	@Autowired
	MessageMiddlewareMonitorMapper messageMiddlewareMonitorMapper;
	/**
	 * 消息中间件数据查询
	 */
	@Override
	public Page<MessageMiddlewareMonitorVo> selectMessageMiddlewareMonitorInfo(
			MessageMiddlewareMonitorEntity parameter) {
		
		PageHelper.startPage(parameter.getPage(), parameter.getSize());
		List<MessageMiddlewareMonitorVo> resultInfo = this.messageMiddlewareMonitorMapper.selectMessageMiddlewareMonitorInfo(parameter);
		Page<MessageMiddlewareMonitorVo> result = Page.build(resultInfo);
		return result;
	}
}
